import React, { useEffect } from 'react';
import TableMasses from './components/TabelMasses';
import { useModel } from '@umijs/max';
interface massesPageProps {
  isEditable: boolean;
}
const massesPage: React.FC<massesPageProps> = (props) => {
  const { initialState } = useModel('@@initialState');
  const getUser = async () => {
    const userInfo = await initialState?.fetchUserInfo?.();
    console.log(userInfo);
  }
  useEffect(() => {
    getUser()
  }, [])
  return <>
    <TableMasses />
    {/* <ErrorPage /> */}
  </>;
};

export default massesPage;
